<?php
$loader->requireOnce('includes/InPayment/InPaymentException.class.php');
$loader->requireOnce('includes/InPayment/InPaymentData.class.php');
$loader->requireOnce('ordo/Insurance.class.php');
$loader->requireOnce('includes/Utils.class.php');
class AbsInPayment {
    protected $patientId     =   '';
    protected $insuranceType =   '';
    protected $volunteeredInsuranceSupport =   '';
    protected $_db;

    const INS_TYPE_NO           =   -1;
    const INS_TYPE_REQUIRED     =   1;
    const INS_TYPE_VOLUNTEERED  =   2;

    public function AbsInPayment($patientId, $insType='') {
        $this->patientId        =   $patientId;
        $this->insuranceType    =   $insType;
        $this->_db              =   $GLOBALS['frame']['adodb']['db'];
        $cfg    =   Celini::configInstance();
        $this->volunteeredInsuranceSupport =   $cfg->get('volunteered_insurance_support');
    }

    public function getPatientId(){
    	return $this->patientId;
    }

    public function getInsuranceType(){
        return $this->insuranceType;
    }

    public function calculatePayment(){
    	$paymentData   =   new InPaymentData();
    	return $paymentData;
    }

    public function calculateTicketPayment($ticketId) {
        $paymentData   =   new InPaymentData();
        return $paymentData;
    }
}
?>